<!DOCTYPE html>
<html lang="en" style="height: 100%; overflow: auto;">

<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
    <meta content="yes" name=" apple-mobile-web-app-capable" />
    <!-- 隐藏状态栏  -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <!-- <title>点餐</title> -->
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/details.css">
</head>

<body style="height:100%;" ng-app="useCoupon" ng-controller='useCouponCtrl'>
    <header>
        <div class="wrapper clearfix">
            <div class="login_fl fl">
                <a href="javascript:history.back()" class="login_icon">
                    <img src="img/srh_icon.png" alt="">
                </a>
            </div>
            <h1 class="top_title">选择红包</h1>
        </div>
    </header>
    
    <div class="coupon-content">
        <ul>
            <li class="clearfix choise-coupon" ng-click="switch($index)" ng-repeat="couponDetails in CouponInfo.list">
                <div class="no fl" ng-class='{yes:$index == selectedCouponId}'></div>
                <div class="coupon-info fr">
                    <div>
                        <p>{{couponDetails.cType == 1?couponDetails.ticketValue:"兑"}}</p>
                    </div>
                    <div>
                        <p ng-bind="couponDetails.cName"></p>
                        <p class="available" ng-if="couponDetails.cType == 1">满{{couponDetails.useExceedValue}}元可用</p>
                        <small>{{couponDetails.useTimeStart}}至{{couponDetails.useTimeEnd}}</small>
                    </div>
                </div>
            </li>
        </ul>
    </div>

    <!-- submit button -->
    <footer class="clearfix">
      <p>点击选择红包</p>
      <input type="button" ng-if="showBtn" value="确认选择" ng-click="ToConfirmOrder()"  style="margin: 0;">
    </footer>

</body>
<span style="display:none;"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1255764485'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1255764485%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script></span>

<script src="js/jquery-1.11.2.min.js"></script>
<script src="js/angular.min.js"></script>
<script type="text/javascript" src="js/constants.js"></script>
<script src="js/common.js"></script>
<script src="js/use-coupon.js"></script>

<script>
_maq.push(['_setMaq', 'use-coupon']);
</script>

</html>
